<div class="main_top">
	<div class="top" id="top">
		<div class="f_l biaozhi"><a href="{DT_PATH}" target="_blank"><img src="{$MODULE[4][linkurl]}image/index_02.jpg"/></a></div>
		<div class="f_l logintext">
			{if $_username}您好, {$_username}   <a href="{DT_PATH}member/" target="_blank" class="fontred">商务中心</a>   <a href="{DT_PATH}member/logout.php" class="fontred">退出</a>{else}您好, 游客！  <a href="{DT_PATH}member/login.php" target="_blank">[请登录]</a> <a href="{DT_PATH}member/register.php" target="_blank">[免费注册]</a>{/if}
		</div>
		<?php
			if(check_name($homepage) && in_array($file, array('sell','sell1', 'buy', 'news', 'honor', 'job', 'price', 'photo', 'info', 'brand', 'video', 'mall'))) {
				$_file = $file;
			}
			else{
				$_file = 'sell';
			}
		?>
		<div class="f_l topsearch">
						<form action="{$MODULE[4][linkurl]}home.php" onsubmit="return checkform();">
<input type="hidden" name="file" value="{$_file}"/>
<input type="hidden" name="action" value="search"/>
<input type="hidden" name="homepage" value="{$username}"/>
				<input type="text" name="kw" class="inputext" id="kwt"  value="{if $kw}{$kw}{else}输入关键词{/if}" onfocus="if(this.value=='输入关键词')this.value='';"/><input name="submit" type="button" value="搜全站" class="inputsubmit" onclick="window.open('{DT_PATH}{$_file}/search.php?kw='+encodeURIComponent($('#kwt').val()));" /><input name="submit" type="submit" value="搜店铺" class="inputsubmit inputsubmit2" /><div class="clear"></div>
			</form>
		</div>
		<div class="f_r" style="line-height:31px;"><a href="{$COM[linkurl]}" onclick="javascript:try{this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);}catch(e){}return false;">设为主页</a> | <a href="{DT_PATH}member/chat.php?touser={$homepage}" target="_blank" style="color:#e60000">在线咨询</a></div>
		<div class="clear"></div>
	</div>
</div>